home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 29
/
029.d81
/
jiffy jotter
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
4KB
|
170 lines
0 gosub60100:goto10
1 poke781,r%:poke782,c%:poke783,peek(783)and254:sys65520:return
10 clr:goto230
30 :
40 in$="":printy$;
50 if(peek(162)and16)=16thenprintu$;l$;
60 if(peek(162)and16)=0thenprint" ";l$;
70 getz$:ifz$=""then50
71 ifz$="[147]"orz$=""then50
80 ifz$=chr$(13)thenreturn
90 ifz$<>d$then130
100 iflen(in$)=0then70
110 in$=left$(in$,len(in$)-1)
120 print" "l$l$;:goto50
130 iflen(in$)>239then50
140 in$=in$+z$:printz$;:pokeqm,0:goto50
150 :
160 input#15,e,e$
170 er=.:ifethenprint"[147]"e;e$:fora=1to2000:next:er=1
180 return
190 :
200 get in$:ifin$=""then200
210 return
220 :
230 printchr$(147)chr$(14)
240 poke53280,0:poke53281,0:dim a$(15)
250 sf$="0:subject.file"
260 open15,8,15:open2,8,2,sf$
270 input#15,e:ife=62thenx=10:nf=0:goto290
280 input#2,nf:x=nf+10:ifx<10thenx=10
290 ife=62then310
300 forx=1tonf:input#2,a$(x):next
310 close2
320 d$=chr$(20):y$=chr$(158)
330 w$=chr$(5):b$=chr$(154):p$=chr$(156)
340 u$=chr$(164):l$=chr$(157)
350 w=40
360 c=64:iffre(0)<>fre(1)thenc=128
370 if c=64 then qm=212:sm=828
380 if c=128 then qm=244:nk=88:sm=2816
390 if c=128 and peek(215)=128thenw=80
400 gosub980:rem poke in ml
410 print"[147][158] [202][201][198][198][217] [202][207][212][212][197][210]
420 [153]" tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(
430 print" [159][193] - [154][193]dd note to a file
440 [153]" open(NULL) - cont(NULL)ead a file
450 print" [159][195] - [154][195]reate new file
460 [153]" openstr$ - contstr$elete file
470 print" [159][209] - [154][209][213][201][212]
490 [153]"open(NULL)umber of files on disk:"nf
510 [153]"lenhoose [printatn, print(NULL), printlen, printstr$ or print(NULL)]:
515 gosub200
520 if in$="c"orin$="[195]"then720
530 if in$="d"orin$="[196]"then860
540 if in$="q"orin$="[209]"then750
545 ifin$="a"orin$="[193]"orin$="[210]"orin$="r"then550
546 goto515
550 print"[147][155][198]iles on disk --"
552 ifnf=.thenprint"[206]o files on disk.":fora=1to2000:next:goto410
555 fora=1tonf:print""a"[153]"a$(a):next
559 cd$=in$
560 a$="[193]dd to":ifin$="r"thena$="[210]ead"
570 print:printa$;" which subject?
580 [141]200
590 a[178][197](in$):[139]a[179]1[176]a[177]nf[167]410
600 f$[178]"0:"[170]a$(a)
610 [139] [195](f$)[177]20[167]f$[178][200](f$,20)
620 [139] cd$[178]"r"[167]1050
630 mx[178]6:[139]w[178]80[167]mx[178]3
640 [153]"loadvalnter text: ("mx"lines max )
650 print:printy$:gosub40
660 gosub690:print#2,in$:gosub160
665 iferthen410
670 print#2:close2
680 goto410
690 :
700 close2:open 2,8,2,f$+",a,s,w"
710 return
720 ifnf=20thenprint"[147]20 [198]iles [205]aximum ...":fora=1to1000:next:goto410
728 print"[147][206]ew category name: ";:gosub40
730 a$(nf+1)=in$:nf=nf+1
740 print"[147]":gosub810:goto1150
750 :
760 print:print"[150][193]re you sure?
770 [141]200
780 [139]in$[178]"n"[176]in$[178]"(NULL)"[167]410
785 [139]in$[179][177]"y"[175]in$[179][177]"(NULL)"[167]770
790 [160]15:[153]"load";:[159]15,8,15,"r0:hello connect=hello connect":[132]15,er
792 [160]15:[139]er[179][177]63[167][128]
794 [147]"hello connect",8
800 :
810 f$[178]"0:"[170]in$
820 [139] [195](f$)[177]20[167]f$[178][200](f$,20)
830 [160]2:[159]2,8,2,f$[170]",s,w":[160]2
840 [141]160:[139]er[167]nf[178]nf[171]1:[137]410
850 [142]
860 :
870 [153]"loadclrstr$elete":[153]
880 [129]x[178]1[164]nf:[153]w$x[163]7)b$a$(x):[130]
890 [153]:[153]
900 [133]"sysstr$elete ascile # ";in$
910 a[178][197](in$):[139]a[179]1[176]a[177]nf[167]410
920 [153]:[153]:[153]"str$elete "a$(a)".
930 print:print"[154][193]re you [211][213][210][197]?":gosub200
940 ifin$<>"y"then410
950 print:print"[150][196]eleting...
960 [152]15,"s0:"[170]a$(a)[170]"*"
970 a$(a)[178]"":nf[178]nf[171]1:[137]1150
980 :
990 [129]j[178]sm[164]sm[170]65:[135]a:[151]j,a:[130]:[142]
1000 [131] 173,214,240,201,82,240,27,162,2,32,198,255,32,228,255,32
1010 [131] 210,255,169,0,133,244,165,211,201,0,208,250,166,144,208,30
1020 [131] 240,234,162,2,32,198,255,32,228,255,32,210,255,169,0,133
1030 [131] 212,173,141,2,201,0,208,249,166,144,208,2,240,233,32,204
1040 [131] 255,96
1050 :
1060 [160]2:[159]2,8,2,f$:[141]150
1070 [153]"load(NULL)ress (NULL)left$right$asc(NULL) (NULL)val(NULL) to pause.
1080 print:print"[208]ress any key to begin.
1090 [141]200
1100 [153]:[153]y$
1110 [158] sm : [160]2
1120 [153]:[153]w$"(NULL)ress any key.
1130 gosub200:goto410
1140 :
1150 print:print"[158][213]pdating subject file...
1160 [152]15,"s"[170]sf$
1170 [159]2,8,2,sf$[170]",s,w":[152]2,nf
1180 [129]x[178]1[164]nf[170]1
1190 [139]a$(x)[179][177]""[167][152]2,a$(x)
1200 [130]:[160]2:[137]10
60100 pn$[178]"mid$right$ascasc(NULL) mid$(NULL)(NULL)(NULL)val(NULL)":an$[178]"peek(NULL): peek(NULL)(NULL)lenval mid$atnvalchr$val(NULL)
60110 bo=14:sc=1:cl=06:c1=05:c2=14:c3=05:c4=14:c5=2:c6=09:c7=4
60130 poke53280,bo:poke53281,sc:print"[147]";:goto60250
60140 poke646,c1:print" [164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164]
60150 [151]646,c2:[153]" fn (NULL)(NULL)atnstr$(NULL)(NULL)atn(NULL) (NULL)(NULL)val(NULL)val(NULL)(NULL)(NULL): then
60170 poke646,c1:print" [163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]
60180 [151]646,c6:[153]""[163]20[171][195](pn$)[173]2);pn$
60190 [151]646,c7:[153]""[163]20[171][195](an$)[173]2);an$
60200 [151]646,c5:[153]""[163]13)"len(NULL)(NULL)(NULL)(NULL)right$chr$left$(NULL) 1986
60210 printtab(9)"[195][207][205][205][207][196][207][210][197] [208][213][194][204][201][195][193][212][201][207][206][211]
60220 [151]646,c3:[153]" totototototototototototototototototototototototototototototototototototo
60230 poke646,c4:print" [165] [167]
60240 [151]646,c3:[153]" tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(wait";
60245 [151]198,.:[137]60360
60250 [151]646,cl
60255 [153]" *newnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewrnd
60260 fora=1to3:gosub60470:next
60270 gosub60470:print"[145][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183]
60280 [129]a[178]1[164]16:[141]60470:[130]
60290 [153]"onandandandandandandandandandandandandandandandandandandandandandandandandandandandandandandandandandandandand
60300 fora=1to3:gosub60470:next
60310 print" [188][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][146][190]";
60320 poke53280,bo:poke53281,sc:goto60140
60360 r%=22:c%=2:gosub1
60370 poke646,c2:print"[165][208]ress the [[211][208][193][195][197] [194][193][210]] to continue.[167]
60372 l1[178]07:l2[178]11:i1[178][171]1:i2[178]1
60375 r%[178]l1:c%[178]14:[141]1:[153]" "
60376 r%[178]l2:c%[178]11:[141]1:[153]" "
60378 l1[178]l1[170]i1:l2[178]l2[170]i2
60390 [139]l1[170]2[177][178]l2[167]i1[178][171]i1:i2[178][171]i2
60400 [139]l1[178]5[167]i1[178][171]i1
60410 [139]l2[178]14[167]i2[178][171]i2
60420 r%[178]l1:c%[178]14:[141]1:[151]646,c6:[153]pn$
60430 r%[178]l2:c%[178]11:[141]1:[151]646,c7:[153]an$
60440 [141]60500:[137]60375
60470 [153]" getwaitget":[142]
60500 [161]a$:[139]a$[179][177]" "[167][142]
60501 [137]10